package com.mjl.shops.activity;

import android.content.Context;
import android.content.Intent;
import android.view.Window;
import android.widget.TextView;

import com.mjl.shops.R;
import com.mjl.shops.base.BaseActivity;
import com.mjl.shops.utils.CommUtils;

import butterknife.BindView;
import butterknife.ButterKnife;

public class SecondClassActivity extends BaseActivity {

    private String title;

    @BindView(R.id.title_tv)
    TextView title_tv;

    @Override
    protected void setContentViewBefore() {
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
    }

    @Override
    protected int getViews() {
        return R.layout.activity_second_class;
    }

    @Override
    protected void setViews() {
        ButterKnife.bind(this);
    }

    @Override
    protected void setDate() {
        title = getIntent().getStringExtra("title");
        title_tv.setText(title);
    }

    @Override
    protected String getStateColor() {
        return CommUtils.color_05000000;
    }

    @Override
    protected int getStetaBackgroundStyle() {
        return 1;
    }

    public static void StartIntent(Context contexts,String str){
        Intent intent = new Intent(contexts,SecondClassActivity.class);
        intent.putExtra("title",str);
        contexts.startActivity(intent);
    }
}
